import {CREATE_TOPIC} from '../constants/createTopic'

const initialState = {
  tab: '',
  title: '',
  content: ''
}

export default function createTopicReducer(state = initialState, action){
  switch(action.type){
    case CREATE_TOPIC:
      return {...state, accesstoken: action.accesstoken}
    default:
      return state
  }
}